<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>
export default {
  created() {
    this.login()
  },
  methods: {
    login() {
      const user = {
        name: 'superadmin',
        password: '111111',
      }
      this.$api.login.login(user).then(res => {
        window.localStorage.setItem( 'token', res.data.token)
        window.localStorage.setItem('uid' , res.data.CurrInfo.uid)
      })
    },
  },
}
</script>

<style >
@import '~styles/common/base.css';

</style>
